# Contributor: Daniel Moch <daniel@danielmoch.com>
# Maintainer: Daniel Moch <daniel@danielmoch.com>
pkgname=imlib2-heic
pkgver=0.1.1
pkgrel=0
pkgdesc="HEIC/HEIF decoder for imlib2 (feh)"
url="https://github.com/vi/imlib2-heic"
arch="all"
license="BSD-3-Clause"
depends="imlib2"
makedepends="imlib2-dev libheif-dev"
subpackages="$pkgname-doc"
source="https://github.com/vi/imlib2-heic/archive/refs/tags/v$pkgver/imlib2-heic-$pkgver.tar.gz"
builddir="$srcdir/imlib2-heic-$pkgver"
options="!check" # no tests provided

build() {
	make
}

package() {
	make install DESTDIR="$pkgdir"
	install -vDm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
a69407d1ba9664a39629023f034adc6bbc5e70901f80b27724f73c105acf5619a5375cc23b47ee524a6fc186e3e820e0da0b7a40682411b5e285255a1bef487a  imlib2-heic-0.1.1.tar.gz
"
